<?php
/**
 * Created by PhpStorm.
 * User: wangmx
 * Date: 2016/11/17
 * Time: 17:50
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class UserRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' => 'api',
            'prefix' => 'api/user',], function ($router) {
            $router->post('country',['uses' =>'Api\UserController@country']);
            $router->post('send-captcha',['uses' =>'Api\UserController@sendIdentifying']);
            $router->post('third-party-login',['uses' =>'Api\UserController@thirdPartyLogin']);
            $router->post('login',['uses' =>'Api\UserController@login']);
            $router->post('userinfo',['uses' =>'Api\UserController@userinfo']);
            $router->post('bind-third-party',['uses' =>'Api\UserController@bindThirdParty']);
            $router->post('cancel-bind-third-party',['uses' =>'Api\UserController@cancelBindThirdParty']);
            $router->post('modify-nickname',['uses' =>'Api\UserController@modifyNickname']);
            $router->post('modify-avatar',['uses' =>'Api\UserController@modifyHeaderimg']);
            $router->post('modify-gender',['uses' =>'Api\UserController@modifyGender']);
            $router->post('modify-birthday',['uses' =>'Api\UserController@modifyBirthday']);
            $router->post('modify-area',['uses' =>'Api\UserController@modifyArea']);
            $router->post('follow',['uses' =>'Api\UserController@follow']);
            $router->post('cancel-follow',['uses' =>'Api\UserController@cancelFollow']);
            $router->post('my-follow',['uses' =>'Api\UserController@myFollow']);
            $router->post('modify-covermap',['uses' =>'Api\UserController@modifyCoverMap']);
            $router->post('person-center',['uses' =>'Api\UserController@personCenter']);
            $router->get('send-captcha-test',['uses' =>'Api\UserController@sendCaptcha']);
            $router->post('logout',['uses' =>'Api\UserController@logout']);
            $router->get('test',['uses' =>'Api\UserController@test']);
            $router->post('get-bank-name-for-card',['uses' =>'Api\UserController@getBankNameForCard']);
        });
    }
}